//
//  Ext+NavigationController.swift
//  Crazy
//
//  Created by ming on 2024/10/27.
//

import UIKit

extension UINavigationController:  UIGestureRecognizerDelegate {
    override open func viewDidLoad() {
        super.viewDidLoad()
        interactivePopGestureRecognizer?.delegate = self
    }

    public func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool {
        return viewControllers.count > 1
    }
}
